package com.library.rest.vo;

/**
 * 在此写用途
 *
 * @version V1.0 <描述当前版本功能>
 * @FileName: life.panda.com.pandalife.rest.ReqeustMode.ResponseModel.java
 * @author: zhiwei
 * @date: 2016-04-17 21:48
 */
public class ResponseModel<MODEL> {
    public int code;
    public String message;
    public MODEL data;


    public boolean isSuccess() {
        return ErrorCode.CODE_SUCCES == code;
    }

    @Override
    public String toString() {
        return "{status:" + code + ", message:" + message + "\n data:" + data + "}";
    }
}
